﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
using System.Configuration;
using System.Web;
using System.IO;

namespace Core.DS
{
    public static partial class CourseDesign
    {
        public static dynamic showCourseDesignList(int start, int limit)
        {
            var sql = new Sql.SqlDataContext();
            var result = (from s in sql.Subjects
                          orderby s.id
                          select s).Skip(start).Take(limit);
            return new
            {
                success = true,
                count = result.Count(),
                result
            };
        }
    }
}
